.class public final Lcom/estrongs/android/statistics/b;
.super Ljava/lang/Object;
.source "StatisticsManager.java"


# static fields
.field private static b:Lcom/estrongs/android/statistics/b;


# instance fields
.field private a:Lcom/estrongs/android/statistics/a;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method private constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/statistics/a;->b()Lcom/estrongs/android/statistics/a;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    return-void
.end method

.method public static b()Lcom/estrongs/android/statistics/b;
    .locals 2

    .line 1
    sget-object v0, Lcom/estrongs/android/statistics/b;->b:Lcom/estrongs/android/statistics/b;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Lcom/estrongs/android/statistics/b;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Lcom/estrongs/android/statistics/b;->b:Lcom/estrongs/android/statistics/b;

    if-nez v1, :cond_0

    .line 4
    new-instance v1, Lcom/estrongs/android/statistics/b;

    invoke-direct {v1}, Lcom/estrongs/android/statistics/b;-><init>()V

    sput-object v1, Lcom/estrongs/android/statistics/b;->b:Lcom/estrongs/android/statistics/b;

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 6
    :cond_1
    :goto_0
    sget-object v0, Lcom/estrongs/android/statistics/b;->b:Lcom/estrongs/android/statistics/b;

    return-object v0
.end method

.method public static c()V
    .locals 4

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    .line 7
    new-instance v1, Lcom/estrongs/android/statistics/b$a;

    invoke-direct {v1, v0}, Lcom/estrongs/android/statistics/b$a;-><init>(Lcom/estrongs/android/pop/FexApplication;)V

    invoke-static {v1}, Lcom/estrongs/android/util/o;->b(Ljava/lang/Runnable;)V

    .line 8
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Lcom/estrongs/android/pop/l;->b(J)V

    .line 9
    new-instance v1, Lcom/estrongs/android/statistics/b$b;

    invoke-direct {v1}, Lcom/estrongs/android/statistics/b$b;-><init>()V

    const-wide/32 v2, 0x2932e00

    invoke-virtual {v0, v1, v2, v3}, Lcom/estrongs/android/pop/FexApplication;->a(Ljava/lang/Runnable;J)V

    return-void
.end method

.method public static d()V
    .locals 4

    .line 2
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    .line 3
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "usr_st"

    .line 4
    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->Y0()Z

    move-result v3

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    const-string v2, "usr_sku"

    .line 5
    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->h0()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 6
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v2, "sta_premium"

    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 11
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v0}, Lcom/estrongs/android/statistics/a;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 3

    .line 6
    invoke-static {p1}, Lcom/estrongs/android/statistics/d;->b(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 7
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "eventValue"

    const-string v2, "daily"

    .line 8
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v1, p1, v0}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Lorg/json/JSONObject;)V

    .line 10
    invoke-static {p1}, Lcom/estrongs/android/statistics/d;->c(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v0, p1, p2}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;)V
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p0, p1, p2, p3, v0}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Z)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Z)V
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v0, p1, p3}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Lorg/json/JSONObject;)V

    if-eqz p4, :cond_0

    .line 4
    iget-object p3, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {p3, p1, p2}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/Throwable;)V
    .locals 3

    const-string v0, "exception"

    .line 12
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "sub"

    .line 13
    invoke-virtual {v1, v2, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 14
    invoke-static {p2}, Landroid/util/Log;->getStackTraceString(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, v0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {p1, v0, v1}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public a(Ljava/lang/String;Lorg/json/JSONObject;)V
    .locals 1

    .line 5
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v0, p1, p2}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    const-string v0, "mtj"

    .line 7
    invoke-virtual {p0, v0, p1}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public b(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .param p2    # Ljava/lang/String;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 8
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;)V

    if-eqz p2, :cond_0

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v0, p1, p2}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_0
    return-void
.end method

.method public b(Ljava/lang/String;Lorg/json/JSONObject;)V
    .locals 1

    .line 10
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v0, p1, p2}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public c(Ljava/lang/String;)V
    .locals 1

    .line 5
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public c(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 2
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "eventValue"

    .line 3
    invoke-virtual {v0, v1, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 4
    iget-object p2, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {p2, p1, v0}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public c(Ljava/lang/String;Lorg/json/JSONObject;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/statistics/b;->a:Lcom/estrongs/android/statistics/a;

    invoke-virtual {v0, p1, p2}, Lcom/estrongs/android/statistics/a;->a(Ljava/lang/String;Lorg/json/JSONObject;)V

    return-void
.end method

.method public d(Ljava/lang/String;)V
    .locals 1

    const-string v0, "1"

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method
